import request from "@/request";

//获取登录页面轮播图接口
export const getLoginPageImages = (imgType)=>{
    let params = new URLSearchParams()
    params.append('type',imgType)
    return request.get('/image/getImageListByType',{params})
}

//管理员获取所有图片接口
export const getAllImage = ()=>{
    return request.get('/image/getAllImageList')
}

//编辑图片接口
export const editImage = (image)=>{
    return request.post('/image/editImage',image)
}

//禁用图片接口
export const forbiddenImage = (imageName)=>{
    let params = new URLSearchParams()
    params.append('imageName',imageName)
    return request.get('/image/forbiddenImage', {params})
}
//解禁图片接口
export const unForbiddenImage = (imageName)=>{
    let params = new URLSearchParams()
    params.append('imageName',imageName)
    return request.get('/image/unForbiddenImage', {params})
}